package org.dairy.farms.dao;

import org.dairy.farms.dao.generic.DAO;
import org.dairy.farms.model.Livestock;
import org.dairy.farms.model.Notes;
import org.dairy.farms.model.NotesType;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gduggira
 * Date: Jun 10, 2011
 * Time: 1:56:34 PM
 */
public interface LivestockDAO extends DAO<Livestock, Long> {
    public List<Livestock> findLivestockOfFarm(Long farmId, int page, int start, int limit);

    public Long findLivestockOfFarmCount(Long farmId);

    public Livestock findLivestockFarm(Long livestockId);

    List<Livestock> findLivestockOfFarmByGender(Long farmId, Livestock.Gender gender);

    List<Livestock> findByIds(Long[] livestockId);

    public List<Livestock> findByProperty(String propertyName, Object propertyValue, int page, int start, int limit);
}